﻿using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Barcode_Project.CutPrint
{
    public partial class CutMeterInputDialog : DevExpress.XtraEditors.XtraForm
    {
        public string confirmNum { get; set; }
        public CutMeterInputDialog()
        {
            InitializeComponent();
        }

        private void btn_confirm_Click(object sender, EventArgs e)
        {
            confirmNum = input_number.Text;

            DialogResult = DialogResult.OK;

            Close();
        }

        private void input_number_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                btn_confirm_Click(null, null);
            }
        }
    }
}